<?php
	if($this->pageCount) {
		$params = Zend_Controller_Front::getInstance()->getRequest()->getParams();
		unset($params['module']);
		unset($params['controller']);
		unset($params['action']);
	}
?>
<div class="paginationControl">
<span><?php echo $this->translate('Pages:'); ?> &nbsp;</span>
<?php if(isset($this->previous)): ?>
	<a href="<?= $this->url(array_merge($params, array('page' => $this->previous))); ?>">&lt; <?php echo $this->translate('preview'); ?></a> | 
<?php endif; ?>

<?php foreach($this->pagesInRange as $page): ?>
	<?php if($this->current != $page): ?>
		<a href="<?= $this->url(array_merge($params, array('page' => $page))); ?>"><?= $page; ?></a> | 
	<?php else: ?>
		<?= $page; ?>
	<?php endif; ?>
<?php endforeach; ?> 

<?php if(isset($this->next)): ?>
	<a href="<?= $this->url(array_merge($params, array('page' => $this->next))); ?>"><?php echo $this->translate('next'); ?> &gt;</a> 
<?php endif; ?>
</div>